import request from '@/utils/request'

const supportApi = {
  // 获取赞助列表
  getMySponsorMeeting(data) {
    return request({
      url: '/webinar/newapi/sponsor/getMySponsorMeeting',
      method: 'get',
      params: data
    })
  },

  // 获取赞助名单
  getSponsorMeetingPerson(data) {
    return request({
      url: '/webinar/newapi/sponsor/getSponsorMeetingPerson',
      method: 'get',
      params: data
    })
  },
  // 获取行业类型
  getIndustryClassifySelectByLevel() {
    return request({
      url: '/webinar/newapi/label/getIndustryClassifySelectByParentId?parentId=0',
      method: 'get',
    })
  },
  // 获取单位/职位类型
  selectUnitType(data) {
    return request({
      url: '/webinar/newapi/selectUnitType',
      method: 'get',
      params: data
    })
  },
  // 获取会议详情
  getSponsorMeetingInfo(data) {
    return request({
      url: '/webinar/newapi/sponsor/getSponsorMeetingInfo',
      method: 'get',
      params: data
    })
  },
  // 获取赞助会议列表
  getMySponsorMeeting(data) {
    return request({
      url: '/webinar/newapi/sponsor/getMySponsorMeeting',
      method: 'get',
      params: data
    })
  },
  // 获取会议旗下主题详情
  getCanSponsorSubject(data) {
    return request({
      url: '/webinar/newapi/sponsor/getCanSponsorSubject',
      method: 'get',
      params: data
    })
  },
    // 发送名单到 指定邮箱
    sendMeetingPersonEmail(data) {
    return request({
      url: '/webinar/newapi/sponsor/sendMeetingPersonEmail',
      method: 'get',
      params: data
    })
  },
  // 获取赞助权限
  getSponsorMeetingAuthories(data) {
    return request({
      url: '/webinar/newapi/meeting/getSponsorMeetingAuthories',
      method: 'get',
      params: data
    })
  },
  // 提交赞助
  applySponsor(data) {
    return request({
      url: '/webinar/newapi/sponsor/applySponsor',
      method: 'get',
      params: data
    })
  },
  // 删除提交的未审核的赞助申请
  delSponsor(data) {
    return request({
      url: '/webinar/newapi/sponsor/delSponsor',
      method: 'get',
      params: data
    })
  },
  // 取消未审核的赞助申请
  cancelSponsor(data) {
    return request({
      url: '/webinar/newapi/sponsor/cancelSponsor',
      method: 'get',
      params: data
    })
  },
  // 获取赞助状态
  getSponsorState(data) {
    return request({
      url: '/webinar/newapi/sponsor/getSponsorState',
      method: 'get',
      params: data
    })
  },
  // 获取自己提交的赞助报告信息
  getSponsorReport(data) {
    return request({
      url: '/webinar/newapi/sponsor/getSponsorReport',
      method: 'get',
      params: data
    })
  },
  // 获取上传报告嘉宾
  getAuthors(data) {
    return request({
      url: '/webinar/newapi/meeting/getAuthors',
      method: 'get',
      params: data
    })
  },
    // 上传报告，提交报告信息去审核
    saveAddCompanuyReport(data) {
      return request({
        url: '/webinar/newapi/sponsor/saveAddCompanuyReport',
        method: 'post',
        data
      })
    }
}
export default supportApi
